package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelCommentService {
    TravelComment save(TravelComment strategyComment);

    Page query(TravelCommentQuery qo);

    Long getCount(Long travelId);

    /**
     * 用过用户查询评论
     * @param userId
     * @return
     */
    List<TravelComment> selectByUserId(Long userId);
}
